<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

/**
 * 好友列表
 * Class FriendList
 * @package App
 */
class FriendList extends Model
{
    protected $guarded = [];

    /**
     * 好友列表 一对一关联 用户模型
     * @return \Illuminate\Database\Eloquent\Relations\HasOne
     */
    public function _imUserHasOne()
    {
        return $this->hasOne (ImUser::class,'id','friend_id');
    }
}
